package com.wordplat.quickstart.xutils.image;

import com.wordplat.quickstart.xutils.common.util.LogUtil;
import ohos.agp.animation.Animator;
import ohos.agp.components.Image;
import ohos.media.image.PixelMap;

import java.lang.reflect.Method;

/**
 * Created by wyouflf on 15/10/13.
 * ImageView Animation Helper
 *
 * @since 2021-05-09
 */
public final class ImageAnimationHelper {
    private static final Method cloneMethod;

    static {
        Method method = null;
        try {
            method = Animator.class.getDeclaredMethod("clone");
            method.setAccessible(true);
        } catch (Throwable ex) {
            method = null;
            LogUtil.w(ex.getMessage(), ex);
        }
        cloneMethod = method;
    }

    private ImageAnimationHelper() {
    }

    /**
     * fadeInDisplay
     *
     * @param imageView
     * @param drawable
     */
    public static void fadeInDisplay(final Image imageView, PixelMap drawable) {
    }

    /**
     * animationDisplay
     *
     * @param imageView
     * @param drawable
     * @param animation
     */
    public static void animationDisplay(Image imageView, PixelMap drawable, Animator animation) {
    }
}
